package com.hqd.jjvm.jnative.atomic;

import com.hqd.jjvm.jnative.JNativeRegistry;
import com.hqd.jjvm.rtda.JThread;

public class JAtomicLongNativeRegistry extends JNativeRegistry {
    private static final JAtomicLongNativeRegistry instance = new JAtomicLongNativeRegistry();
    protected static final String CLASS_PATH = "java/util/concurrent/atomic/AtomicLong";

    static {
        registry(CLASS_PATH, "VMSupportsCS8", "()Z", JAtomicLongNativeRegistry::VMSupportsCS8);
    }

    private static void VMSupportsCS8(JThread jThread) {
        jThread.getJvmStack().pushOperandStackBoolVal(false);
    }
}
